/*
 * Universidad del Valle
 * Carlos Sagastume, 12113
 * Rodimiro Castaneda, 12122
 */

import java.util.LinkedList;

public class Nodo <GR> { 
        
        private String name;
        private GR element;
        
//constructores        
        public Nodo(String name) {
            this.name = name;
        }
        
        public Nodo(String name, GR element) {
            this.name = name;
            this.element = element;
        }
        
//metodos get        
        public String getName() {
            return name;
        }
        
       public GR getElement() {
            return element;
       }
       
//metodos set       
       public void setName(String name) {
           this.name = name;
       }
       
       public void setElement(GR element) {
           this.element = element;
       }
       
//metodo ToString que devuelve informacion en modo texto
       @Override   
       public String toString() {
           return "(" + name + "," + element.toString() + ")";
       }
}   